package com.example.supplychainbackend.mapper;

import com.example.supplychainbackend.controller.dto.supervise.ComplaintDto;
import com.example.supplychainbackend.controller.dto.supervise.TraceApplyDto;
import com.example.supplychainbackend.entity.supervise.ComplaintEntity;
import org.mapstruct.Builder;
import org.mapstruct.Mapper;
import org.mapstruct.NullValuePropertyMappingStrategy;

import java.util.List;

@Mapper(componentModel = "spring",
        builder = @Builder(disableBuilder = true),
        nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface SuperviseMapper {
    ComplaintDto toComplaintDto(ComplaintEntity entity);
    ComplaintEntity toComplaintEntity(ComplaintDto dto);
    List<ComplaintDto> toComplaintDtoList(List<ComplaintEntity> entities);
}
